home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1992 June: ROMin Holiday / ADC Developer CD (1992-06) (''ROMin Holiday'')_iso / Developer Connection - 06-1992.iso / Developer Essentials / MPW Interfaces & Libraries / PInterfaces / SysEqu.p < prev    next >
Encoding:
Text File  |  1992-01-29  |  25.1 KB  |  441 lines  |  [TEXT/MPS ]

  1.  
  2. {
  3. Created: Friday, November 15, 1991 at 9:35 AM
  4.  SysEqu.p
  5.  Pascal Interface to the Macintosh Libraries
  6.  
  7.   Copyright Apple Computer, Inc. 1985-1991
  8.   All rights reserved
  9. }
  10.  
  11.  
  12. {$IFC UNDEFINED UsingIncludes}
  13. {$SETC UsingIncludes := 0}
  14. {$ENDC}
  15.  
  16. {$IFC NOT UsingIncludes}
  17.  UNIT SysEqu;
  18.  INTERFACE
  19. {$ENDC}
  20.  
  21. {$IFC UNDEFINED UsingSysEqu}
  22. {$SETC UsingSysEqu := 1}
  23.  
  24.  
  25. CONST
  26. PCDeskPat = $20B;                {[GLOBAL VAR]  desktop pat, top bit only! others are in use}
  27. HiKeyLast = $216;                {[GLOBAL VAR]  Same as KbdVars}
  28. KbdLast = $218;                    {[GLOBAL VAR]  Same as KbdVars+2}
  29. ExpandMem = $2B6;                {[GLOBAL VAR]  pointer to expanded memory block}
  30. SCSIBase = $0C00;                {[GLOBAL VAR]  (long) base address for SCSI chip read}
  31. SCSIDMA = $0C04;                {[GLOBAL VAR]  (long) base address for SCSI DMA}
  32. SCSIHsk = $0C08;                {[GLOBAL VAR]  (long) base address for SCSI handshake}
  33. SCSIGlobals = $0C0C;            {[GLOBAL VAR]  (long) ptr for SCSI mgr locals}
  34. RGBBlack = $0C10;                {[GLOBAL VAR]  (6 bytes) the black field for color}
  35. RGBWhite = $0C16;                {[GLOBAL VAR]  (6 bytes) the white field for color}
  36. RowBits = $0C20;                {[GLOBAL VAR]  (word) screen horizontal pixels}
  37. ColLines = $0C22;                {[GLOBAL VAR]  (word) screen vertical pixels}
  38. ScreenBytes = $0C24;            {[GLOBAL VAR]  (long) total screen bytes}
  39. NMIFlag = $0C2C;                {[GLOBAL VAR]  (byte) flag for NMI debounce}
  40. VidType = $0C2D;                {[GLOBAL VAR]  (byte) video board type ID}
  41. VidMode = $0C2E;                {[GLOBAL VAR]  (byte) video mode (4=4bit color)}
  42. SCSIPoll = $0C2F;                {[GLOBAL VAR]  (byte) poll for device zero only once.}
  43. SEVarBase = $0C30;                {[GLOBAL VAR] }
  44. MMUFlags = $0CB0;                {[GLOBAL VAR]  (byte) cleared to zero (reserved for future use)}
  45. MMUType = $0CB1;                {[GLOBAL VAR]  (byte) kind of MMU present}
  46. MMU32bit = $0CB2;                {[GLOBAL VAR]  (byte) boolean reflecting current machine MMU mode}
  47. MMUFluff = $0CB3;                {[GLOBAL VAR]  (byte) fluff byte forced by reducing MMUMode to MMU32bit.}
  48. MMUTbl = $0CB4;                    {[GLOBAL VAR]  (long) pointer to MMU Mapping table}
  49. MMUTblSize = $0CB8;                {[GLOBAL VAR]  (long) size of the MMU mapping table}
  50. SInfoPtr = $0CBC;                {[GLOBAL VAR]  (long) pointer to Slot manager information}
  51. ASCBase = $0CC0;                {[GLOBAL VAR]  (long) pointer to Sound Chip}
  52. SMGlobals = $0CC4;                { (long) pointer to Sound Manager Globals}
  53. TheGDevice = $0CC8;                {[GLOBAL VAR]  (long) the current graphics device}
  54. CQDGlobals = $0CCC;                { (long) quickDraw global extensions}
  55. ADBBase = $0CF8;                {[GLOBAL VAR]  (long) pointer to Front Desk Buss Variables}
  56. WarmStart = $0CFC;                {[GLOBAL VAR]  (long) flag to indicate it is a warm start}
  57. TimeDBRA = $0D00;                {[GLOBAL VAR]  (word) number of iterations of DBRA per millisecond}
  58. TimeSCCDB = $0D02;                {[GLOBAL VAR]  (word) number of iter's of SCC access & DBRA.}
  59. SlotQDT = $0D04;                {[GLOBAL VAR]  ptr to slot queue table}
  60. SlotPrTbl = $0D08;                {[GLOBAL VAR]  ptr to slot priority table}
  61. SlotVBLQ = $0D0C;                {[GLOBAL VAR]  ptr to slot VBL queue table}
  62. ScrnVBLPtr = $0D10;                {[GLOBAL VAR]  save for ptr to main screen VBL queue}
  63. SlotTICKS = $0D14;                {[GLOBAL VAR]  ptr to slot tickcount table}
  64. TableSeed = $0D20;                {[GLOBAL VAR]  (long) seed value for color table ID's}
  65. SRsrcTblPtr = $0D24;            {[GLOBAL VAR]  (long) pointer to slot resource table.}
  66. JVBLTask = $0D28;                {[GLOBAL VAR]  vector to slot VBL task interrupt handler}
  67. WMgrCPort = $0D2C;                {[GLOBAL VAR]  window manager color port }
  68. VertRRate = $0D30;                {[GLOBAL VAR]  (word) Vertical refresh rate for start manager. }
  69. ChunkyDepth = $0D60;            {[GLOBAL VAR]  depth of the pixels}
  70. CrsrPtr = $0D62;                {[GLOBAL VAR]  pointer to cursor save area}
  71. PortList = $0D66;                {[GLOBAL VAR]  list of grafports}
  72. MickeyBytes = $0D6A;            {[GLOBAL VAR]  long pointer to cursor stuff}
  73. QDErrLM = $0D6E;                {[GLOBAL VAR] QDErr has name conflict w/ type. QuickDraw error code [word]}
  74. VIA2DT = $0D70;                    {[GLOBAL VAR]  32 bytes for VIA2 dispatch table for NuMac}
  75. SInitFlags = $0D90;                {[GLOBAL VAR]  StartInit.a flags [word]}
  76. DTQueue = $0D92;                {[GLOBAL VAR]  (10 bytes) deferred task queue header}
  77. DTQFlags = $0D92;                {[GLOBAL VAR]  flag word for DTQueue}
  78. DTskQHdr = $0D94;                {[GLOBAL VAR]  ptr to head of queue}
  79. DTskQTail = $0D98;                {[GLOBAL VAR]  ptr to tail of queue}
  80. JDTInstall = $0D9C;                {[GLOBAL VAR]  (long) ptr to deferred task install routine}
  81. HiliteRGB = $0DA0;                {[GLOBAL VAR]  6 bytes: rgb of hilite color}
  82. TimeSCSIDB = $0B24;                {[GLOBAL VAR]  (word) number of iter's of SCSI access & DBRA}
  83. DSCtrAdj = $0DA8;                {[GLOBAL VAR]  (long) Center adjust for DS rect.}
  84. IconTLAddr = $0DAC;                {[GLOBAL VAR]  (long) pointer to where start icons are to be put.}
  85. VideoInfoOK = $0DB0;            {[GLOBAL VAR]  (long) Signals to CritErr that the Video card is ok}
  86. EndSRTPtr = $0DB4;                {[GLOBAL VAR]  (long) Pointer to the end of the Slot Resource Table (Not the SRT buffer).}
  87. SDMJmpTblPtr = $0DB8;            {[GLOBAL VAR]  (long) Pointer to the SDM jump table}
  88. JSwapMMU = $0DBC;                {[GLOBAL VAR]  (long) jump vector to SwapMMU routine}
  89. SdmBusErr = $0DC0;                {[GLOBAL VAR]  (long) Pointer to the SDM busErr handler}
  90. LastTxGDevice = $0DC4;            {[GLOBAL VAR]  (long) copy of TheGDevice set up for fast text measure}
  91. NewCrsrJTbl = $88C;                {[GLOBAL VAR]  location of new crsr jump vectors}
  92. JAllocCrsr = $88C;                {[GLOBAL VAR]  (long) vector to routine that allocates cursor}
  93. JSetCCrsr = $890;                {[GLOBAL VAR]  (long) vector to routine that sets color cursor}
  94. JOpcodeProc = $894;                {[GLOBAL VAR]  (long) vector to process new picture opcodes}
  95. CrsrBase = $898;                {[GLOBAL VAR]  (long) scrnBase for cursor}
  96. CrsrDevice = $89C;                {[GLOBAL VAR]  (long) current cursor device}
  97. SrcDevice = $8A0;                {[GLOBAL VAR]  (LONG) Src device for Stretchbits}
  98. MainDevice = $8A4;                {[GLOBAL VAR]  (long) the main screen device}
  99. DeviceList = $8A8;                {[GLOBAL VAR]  (long) list of display devices}
  100. CrsrRow = $8AC;                    {[GLOBAL VAR]  (word) rowbytes for current cursor screen}
  101. QDColors = $8B0;                {[GLOBAL VAR]  (long) handle to default colors}
  102. HiliteMode = $938;                {[GLOBAL VAR]  used for color highlighting}
  103. BusErrVct = $08;                {[GLOBAL VAR]  bus error vector}
  104. RestProc = $A8C;                {[GLOBAL VAR]  Resume procedure f InitDialogs [pointer]}
  105. ROM85 = $28E;                    {[GLOBAL VAR]  (word) actually high bit - 0 for ROM vers $75 (sic) and later}
  106. ROMMapHndl = $B06;                {[GLOBAL VAR]  (long) handle of ROM resource map}
  107. ScrVRes = $102;                    {[GLOBAL VAR] Pixels per inch vertically (word)
  108.    screen vertical dots/inch [word]}
  109. ScrHRes = $104;                    {[GLOBAL VAR] Pixels per inch horizontally (word)
  110.    screen horizontal dots/inch [word]}
  111. ScrnBase = $824;                {[GLOBAL VAR] Address of main screen buffer
  112.    Screen Base [pointer]}
  113. ScreenRow = $106;                {[GLOBAL VAR]  rowBytes of screen [word]}
  114. MBTicks = $16E;                    {[GLOBAL VAR]  tick count @ last mouse button [long]}
  115. JKybdTask = $21A;                {[GLOBAL VAR]  keyboard VBL task hook [pointer]}
  116. KeyLast = $184;                    {[GLOBAL VAR]  ASCII for last valid keycode [word]}
  117. KeyTime = $186;                    {[GLOBAL VAR]  tickcount when KEYLAST was rec'd [long]}
  118. KeyRepTime = $18A;                {[GLOBAL VAR]  tickcount when key was last repeated [long]}
  119. SPConfig = $1FB;                {[GLOBAL VAR] Use types for serial ports (byte)
  120.    config bits: 4-7 A, 0-3 B (see use type below)}
  121. SPPortA = $1FC;                    {[GLOBAL VAR] Modem port configuration (word)
  122.    SCC port A configuration [word]}
  123. SPPortB = $1FE;                    {[GLOBAL VAR] Printer port configuration (word)
  124.    SCC port B configuration [word]}
  125. SCCRd = $1D8;                    {[GLOBAL VAR] SCC read base address
  126.    SCC base read address [pointer]}
  127. SCCWr = $1DC;                    {[GLOBAL VAR] SCC write base address
  128.    SCC base write address [pointer]}
  129. DoubleTime = $2F0;                {[GLOBAL VAR] Double-click interval in ticks (long)
  130.    double click ticks [long]}
  131. CaretTime = $2F4;                {[GLOBAL VAR] Caret-blink interval in ticks (long)
  132.    caret blink ticks [long]}
  133. KeyThresh = $18E;                {[GLOBAL VAR] Auto-key threshold (word)
  134.    threshold for key repeat [word]}
  135. KeyRepThresh = $190;            {[GLOBAL VAR] Auto-key rate (word)
  136.    key repeat speed [word]}
  137. SdVolume = $260;                {[GLOBAL VAR] Current speaker volume (byte:  low-order three bits only)
  138.    Global volume(sound) control [byte]}
  139. Ticks = $16A;                    {[GLOBAL VAR] Current number of ticks since system startup (long)
  140.    Tick count, time since boot [unsigned long]}
  141. TimeLM = $20C;                    {[GLOBAL VAR] Time has name conflict w/ type. Clock time (extrapolated) [long]}
  142. MonkeyLives = $100;                {[GLOBAL VAR]  monkey lives if >= 0 [word]}
  143. SEvtEnb = $15C;                    {[GLOBAL VAR] 0 if SystemEvent should return FALSE (byte)
  144.    enable SysEvent calls from GNE [byte]}
  145. JournalFlag = $8DE;                {[GLOBAL VAR] Journaling mode (word)
  146.    journaling state [word]}
  147. JournalRef = $8E8;                {[GLOBAL VAR] Reference number of journaling device driver (word)
  148.    Journalling driver's refnum [word]}
  149. BufPtr = $10C;                    {[GLOBAL VAR] Address of end of jump table
  150.    top of application memory [pointer]}
  151. StkLowPt = $110;                {[GLOBAL VAR]  Lowest stack as measured in VBL task [pointer]}
  152. TheZone = $118;                    {[GLOBAL VAR] Address of current heap zone
  153.    current heap zone [pointer]}
  154. ApplLimit = $130;                {[GLOBAL VAR] Application heap limit
  155.    application limit [pointer]}
  156. SysZone = $2A6;                    {[GLOBAL VAR] Address of system heap zone
  157.    system heap zone [pointer]}
  158. ApplZone = $2AA;                {[GLOBAL VAR] Address of application heap zone
  159.    application heap zone [pointer]}
  160. HeapEnd = $114;                    {[GLOBAL VAR] Address of end of application heap zone
  161.    end of heap [pointer]}
  162. HiHeapMark = $BAE;                {[GLOBAL VAR]  (long) highest address used by a zone below sp<01Nov85 JTC>}
  163. MemErr = $220;                    {[GLOBAL VAR]  last memory manager error [word]}
  164. UTableBase = $11C;                {[GLOBAL VAR] Base address of unit table
  165.    unit I/O table [pointer]}
  166. UnitNtryCnt = $1D2;                {[GLOBAL VAR]  count of entries in unit table [word]}
  167. JFetch = $8F4;                    {[GLOBAL VAR] Jump vector for Fetch function
  168.    fetch a byte routine for drivers [pointer]}
  169. JStash = $8F8;                    {[GLOBAL VAR] Jump vector for Stash function
  170.    stash a byte routine for drivers [pointer]}
  171. JIODone = $8FC;                    {[GLOBAL VAR] Jump vector for IODone function
  172.    IODone entry location [pointer]}
  173. DrvQHdr = $308;                    {[GLOBAL VAR] Drive queue header (10 bytes)
  174.    queue header of drives in system [10 bytes]}
  175. BootDrive = $210;                {[GLOBAL VAR]  drive number of boot drive [word]}
  176. EjectNotify = $338;                {[GLOBAL VAR]  eject notify procedure [pointer]}
  177. IAZNotify = $33C;                {[GLOBAL VAR]  world swaps notify procedure [pointer]}
  178. SFSaveDisk = $214;                {[GLOBAL VAR] Negative of volume reference number used by Standard File Package (word)
  179.    last vRefNum seen by standard file [word]}
  180. CurDirStore = $398;                {[GLOBAL VAR]  save dir across calls to Standard File [long]}
  181. OneOne = $A02;                    {[GLOBAL VAR] $00010001
  182.    constant $00010001 [long]}
  183. MinusOne = $A06;                {[GLOBAL VAR] $FFFFFFFF
  184.    constant $FFFFFFFF [long]}
  185. Lo3Bytes = $31A;                {[GLOBAL VAR] $00FFFFFF
  186.    constant $00FFFFFF [long]}
  187. ROMBase = $2AE;                    {[GLOBAL VAR] Base address of ROM
  188.    ROM base address [pointer]}
  189. RAMBase = $2B2;                    {[GLOBAL VAR] Trap dispatch table's base address for routines in RAM
  190.    RAM base address [pointer]}
  191. SysVersion = $15A;                {[GLOBAL VAR]  version # of RAM-based system [word]}
  192. RndSeed = $156;                    {[GLOBAL VAR] Random number seed (long)
  193.    random seed/number [long]}
  194. Scratch20 = $1E4;                {[GLOBAL VAR] 20-byte scratch area
  195.    scratch [20 bytes]}
  196. Scratch8 = $9FA;                {[GLOBAL VAR] 8-byte scratch area
  197.    scratch [8 bytes]}
  198. ToolScratch = $9CE;                {[GLOBAL VAR] 8-byte scratch area
  199.    scratch [8 bytes]}
  200. ApplScratch = $A78;                {[GLOBAL VAR] 12-byte application scratch area
  201.    scratch [12 bytes]}
  202. ScrapSize = $960;                {[GLOBAL VAR] Size in bytes of desk scrap (long)
  203.    scrap length [long]}
  204. ScrapHandle = $964;                {[GLOBAL VAR] Handle to desk scrap in memory
  205.    memory scrap [handle]}
  206. ScrapCount = $968;                {[GLOBAL VAR] Count changed by ZeroScrap (word)
  207.    validation byte [word]}
  208. ScrapState = $96A;                {[GLOBAL VAR] Tells where desk scrap is (word)
  209.    scrap state [word]}
  210. ScrapName = $96C;                {[GLOBAL VAR] Pointer to scrap file name (preceded by length byte)
  211.    pointer to scrap name [pointer]}
  212. IntlSpec = $BA0;                {[GLOBAL VAR]  (long) - ptr to extra Intl data }
  213. SwitcherTPtr = $286;            {[GLOBAL VAR]  Switcher's switch table }
  214. CPUFlag = $12F;                    {[GLOBAL VAR]  $00=68000, $01=68010, $02=68020 (old ROM inits to $00)}
  215. VIA = $1D4;                        {[GLOBAL VAR] VIA base address
  216.    VIA base address [pointer]}
  217. IWM = $1E0;                        {[GLOBAL VAR]  IWM base address [pointer]}
  218. Lvl1DT = $192;                    {[GLOBAL VAR] Level-1 secondary interrupt vector table (32 bytes)
  219.    Interrupt level 1 dispatch table [32 bytes]}
  220. Lvl2DT = $1B2;                    {[GLOBAL VAR] Level-2 secondary interrupt vector table (32 bytes)
  221.    Interrupt level 2 dispatch table [32 bytes]}
  222. ExtStsDT = $2BE;                {[GLOBAL VAR] External/status interrupt vector table (16 bytes)
  223.    SCC ext/sts secondary dispatch table [16 bytes]}
  224. SPValid = $1F8;                    {[GLOBAL VAR] Validity status (byte)
  225.    validation field ($A7) [byte]}
  226. SPATalkA = $1F9;                {[GLOBAL VAR] AppleTalk node ID hint for modem port (byte)
  227.    AppleTalk node number hint for port A}
  228. SPATalkB = $1FA;                {[GLOBAL VAR] AppleTalk node ID hint for printer port (byte)
  229.    AppleTalk node number hint for port B}
  230. SPAlarm = $200;                    {[GLOBAL VAR] Alarm setting (long)
  231.    alarm time [long]}
  232. SPFont = $204;                    {[GLOBAL VAR] Application font number minus 1 (word)
  233.    default application font number minus 1 [word]}
  234. SPKbd = $206;                    {[GLOBAL VAR] Auto-key threshold and rate (byte)
  235.    kbd repeat thresh in 4/60ths [2 4-bit]}
  236. SPPrint = $207;                    {[GLOBAL VAR] Printer connection (byte)
  237.    print stuff [byte]}
  238. SPVolCtl = $208;                {[GLOBAL VAR] Speaker volume setting in parameter RAM (byte)
  239.    volume control [byte]}
  240. SPClikCaret = $209;                {[GLOBAL VAR] Double-click and caret-blink times (byte)
  241.    double click/caret time in 4/60ths[2 4-bit]}
  242. SPMisc1 = $20A;                    {[GLOBAL VAR]  miscellaneous [1 byte]}
  243. SPMisc2 = $20B;                    {[GLOBAL VAR] Mouse scaling, system startup disk, menu blink (byte)
  244.    miscellaneous [1 byte]}
  245. GetParam = $1E4;                {[GLOBAL VAR]  system parameter scratch [20 bytes]}
  246. SysParam = $1F8;                {[GLOBAL VAR] Low-memory copy of parameter RAM (20 bytes)
  247.    system parameter memory [20 bytes]}
  248. CrsrThresh = $8EC;                {[GLOBAL VAR] Mouse-scaling threshold (word) 
  249.    delta threshold for mouse scaling [word]}
  250. JCrsrTask = $8EE;                {[GLOBAL VAR]  address of CrsrVBLTask [long]}
  251. MTemp = $828;                    {[GLOBAL VAR]  Low-level interrupt mouse location [long]}
  252. RawMouse = $82C;                {[GLOBAL VAR]  un-jerked mouse coordinates [long]}
  253. CrsrRect = $83C;                {[GLOBAL VAR]  Cursor hit rectangle [8 bytes]}
  254. TheCrsr = $844;                    {[GLOBAL VAR]  Cursor data, mask & hotspot [68 bytes]}
  255. CrsrAddr = $888;                {[GLOBAL VAR]  Address of data under cursor [long]}
  256. CrsrSave = $88C;                {[GLOBAL VAR]  data under the cursor [64 bytes]}
  257. CrsrVis = $8CC;                    {[GLOBAL VAR]  Cursor visible? [byte]}
  258. CrsrBusy = $8CD;                {[GLOBAL VAR]  Cursor locked out? [byte]}
  259. CrsrNew = $8CE;                    {[GLOBAL VAR]  Cursor changed? [byte]}
  260. CrsrState = $8D0;                {[GLOBAL VAR]  Cursor nesting level [word]}
  261. CrsrObscure = $8D2;                {[GLOBAL VAR]  Cursor obscure semaphore [byte]}
  262. KbdVars = $216;                    {[GLOBAL VAR]  Keyboard manager variables [4 bytes]}
  263. KbdType = $21E;                    {[GLOBAL VAR]  keyboard model number [byte]}
  264. MBState = $172;                    {[GLOBAL VAR]  current mouse button state [byte]}
  265. KeyMapLM = $174;                {[GLOBAL VAR] KeyMap has name conflict w/ type. Bitmap of the keyboard [4 longs]}
  266. KeypadMap = $17C;                {[GLOBAL VAR]  bitmap for numeric pad-18bits [long]}
  267. Key1Trans = $29E;                {[GLOBAL VAR]  keyboard translator procedure [pointer]}
  268. Key2Trans = $2A2;                {[GLOBAL VAR]  numeric keypad translator procedure [pointer]}
  269. JGNEFilter = $29A;                {[GLOBAL VAR]  GetNextEvent filter proc [pointer]}
  270. KeyMVars = $B04;                {[GLOBAL VAR]  (word) for ROM KEYM proc state}
  271. Mouse = $830;                    {[GLOBAL VAR]  processed mouse coordinate [long]}
  272. CrsrPin = $834;                    {[GLOBAL VAR]  cursor pinning rectangle [8 bytes]}
  273. CrsrCouple = $8CF;                {[GLOBAL VAR]  cursor coupled to mouse? [byte]}
  274. CrsrScale = $8D3;                {[GLOBAL VAR]  cursor scaled? [byte]}
  275. MouseMask = $8D6;                {[GLOBAL VAR]  V-H mask for ANDing with mouse [long]}
  276. MouseOffset = $8DA;                {[GLOBAL VAR]  V-H offset for adding after ANDing [long]}
  277. AlarmState = $21F;                {[GLOBAL VAR]  Bit7=parity, Bit6=beeped, Bit0=enable [byte]}
  278. VBLQueue = $160;                {[GLOBAL VAR] Vertical retrace queue header (10 bytes)
  279.    VBL queue header [10 bytes]}
  280. SysEvtMask = $144;                {[GLOBAL VAR] System event mask (word)
  281.    system event mask [word]}
  282. SysEvtBuf = $146;                {[GLOBAL VAR]  system event queue element buffer [pointer]}
  283. EventQueue = $14A;                {[GLOBAL VAR] Event queue header (10 bytes)
  284.    event queue header [10 bytes]}
  285. EvtBufCnt = $154;                {[GLOBAL VAR]  max number of events in SysEvtBuf - 1 [word]}
  286. GZRootHnd = $328;                {[GLOBAL VAR] Handle to relocatable block not to be moved by grow zone function
  287.    root handle for GrowZone [handle]}
  288. GZRootPtr = $32C;                {[GLOBAL VAR]  root pointer for GrowZone [pointer]}
  289. GZMoveHnd = $330;                {[GLOBAL VAR]  moving handle for GrowZone [handle]}
  290. MemTop = $108;                    {[GLOBAL VAR] Address of end of RAM (on Macintosh XL, end of RAM available to applications)
  291.    top of memory [pointer]}
  292. MmInOK = $12E;                    {[GLOBAL VAR]  initial memory mgr checks ok? [byte]}
  293. HpChk = $316;                    {[GLOBAL VAR]  heap check RAM code [pointer]}
  294. MaskBC = $31A;                    {[GLOBAL VAR]  Memory Manager Byte Count Mask [long]}
  295. MaskHandle = $31A;                {[GLOBAL VAR]  Memory Manager Handle Mask [long]}
  296. MaskPtr = $31A;                    {[GLOBAL VAR]  Memory Manager Pointer Mask [long]}
  297. MinStack = $31E;                {[GLOBAL VAR] Minimum space allotment for stack (long)
  298.    min stack size used in InitApplZone [long]}
  299. DefltStack = $322;                {[GLOBAL VAR] Default space allotment for stack (long) 
  300.    default size of stack [long]}
  301. MMDefFlags = $326;                {[GLOBAL VAR]  default zone flags [word]}
  302. DSAlertTab = $2BA;                {[GLOBAL VAR] Pointer to system error alert table in use
  303.    system error alerts [pointer]}
  304. DSAlertRect = $3F8;                {[GLOBAL VAR] Rectangle enclosing system error alert (8 bytes)
  305.    rectangle for disk-switch alert [8 bytes]}
  306. DSDrawProc = $334;                {[GLOBAL VAR]  alternate syserror draw procedure [pointer]}
  307. DSWndUpdate = $15D;                {[GLOBAL VAR]  GNE not to paintBehind DS AlertRect? [byte]}
  308. WWExist = $8F2;                    {[GLOBAL VAR]  window manager initialized? [byte]}
  309. QDExist = $8F3;                    {[GLOBAL VAR]  quickdraw is initialized [byte]}
  310. ResumeProc = $A8C;                {[GLOBAL VAR] Address of resume procedure
  311.    Resume procedure from InitDialogs [pointer]}
  312. DSErrCode = $AF0;                {[GLOBAL VAR] Current system error ID (word)
  313.    last system error alert ID}
  314. IntFlag = $15F;                    {[GLOBAL VAR]  reduce interrupt disable time when bit 7 = 0}
  315. SerialVars = $2D0;                {[GLOBAL VAR]  async driver variables [16 bytes]}
  316. ABusVars = $2D8;                {[GLOBAL VAR] Pointer to AppleTalk variables
  317.   ;Pointer to AppleTalk local variables}
  318. ABusDCE = $2DC;                    {[GLOBAL VAR] ;Pointer to AppleTalk DCE}
  319. PortAUse = $290;                {[GLOBAL VAR]  bit 7: 1 = not in use, 0 = in use}
  320. PortBUse = $291;                {[GLOBAL VAR] Current availability of serial port B (byte)
  321.    port B use, same format as PortAUse}
  322. SCCASts = $2CE;                    {[GLOBAL VAR]  SCC read reg 0 last ext/sts rupt - A [byte]}
  323. SCCBSts = $2CF;                    {[GLOBAL VAR]  SCC read reg 0 last ext/sts rupt - B [byte]}
  324. DskErr = $142;                    {[GLOBAL VAR]  disk routine result code [word]}
  325. PWMBuf2 = $312;                    {[GLOBAL VAR]  PWM buffer 1 (or 2 if sound) [pointer]}
  326. SoundPtr = $262;                {[GLOBAL VAR] Pointer to four-tone record
  327.    4VE sound definition table [pointer]}
  328. SoundBase = $266;                {[GLOBAL VAR] Pointer to free-form synthesizer buffer
  329.    sound bitMap [pointer]}
  330. SoundVBL = $26A;                {[GLOBAL VAR]  vertical retrace control element [16 bytes]}
  331. SoundDCE = $27A;                {[GLOBAL VAR]  sound driver DCE [pointer]}
  332. SoundActive = $27E;                {[GLOBAL VAR]  sound is active? [byte]}
  333. SoundLevel = $27F;                {[GLOBAL VAR] Amplitude in 740-byte buffer (byte)
  334.    current level in buffer [byte]}
  335. CurPitch = $280;                {[GLOBAL VAR] Value of count in square-wave synthesizer buffer (word)
  336.    current pitch value [word]}
  337. DskVerify = $12C;                {[GLOBAL VAR]  used by 3.5 disk driver for read/verify [byte]}
  338. TagData = $2FA;                    {[GLOBAL VAR]  sector tag info for disk drivers [14 bytes]}
  339. BufTgFNum = $2FC;                {[GLOBAL VAR] File tags buffer:  file number (long)
  340.    file number [long]}
  341. BufTgFFlg = $300;                {[GLOBAL VAR] File tags buffer:  flags (word:  bit 1=1 if resource fork) 
  342.    flags [word]}
  343. BufTgFBkNum = $302;                {[GLOBAL VAR] File tags buffer:  logical block number (word)
  344.    logical block number [word]}
  345. BufTgDate = $304;                {[GLOBAL VAR] File tags buffer:  date and time of last modification (long)
  346.    time stamp [word]}
  347. ScrDmpEnb = $2F8;                {[GLOBAL VAR] 0 if GetNextEvent shouldn't process Command-Shift-number combinations (byte)
  348.    screen dump enabled? [byte]}
  349. ScrDmpType = $2F9;                {[GLOBAL VAR]  FF dumps screen, FE dumps front window [byte]}
  350. ScrapVars = $960;                {[GLOBAL VAR]  scrap manager variables [32 bytes]}
  351. ScrapInfo = $960;                {[GLOBAL VAR]  scrap length [long]}
  352. ScrapEnd = $980;                {[GLOBAL VAR]  end of scrap vars}
  353. ScrapTag = $970;                {[GLOBAL VAR]  scrap file name [STRING[15]]}
  354. LaunchFlag = $902;                {[GLOBAL VAR]  from launch or chain [byte]}
  355. SaveSegHandle = $930;            {[GLOBAL VAR]  seg 0 handle [handle]}
  356. CurJTOffset = $934;                {[GLOBAL VAR] Offset to jump table from location pointed to by A5 (word)
  357.    current jump table offset [word]}
  358. CurPageOption = $936;            {[GLOBAL VAR] Sound/screen buffer configuration passed to Chain or Launch (word)
  359.    current page 2 configuration [word]}
  360. LoaderPBlock = $93A;            {[GLOBAL VAR]  param block for ExitToShell [10 bytes]}
  361. CurApRefNum = $900;                {[GLOBAL VAR] Reference number of current application's resource file (word)
  362.    refNum of application's resFile [word]}
  363. CurrentA5 = $904;                {[GLOBAL VAR] Address of boundary between application globals and application parameters
  364.    current value of A5 [pointer]}
  365. CurStackBase = $908;            {[GLOBAL VAR] Address of base of stack; start of application globals
  366.    current stack base [pointer]}
  367. CurApName = $910;                {[GLOBAL VAR] Name of current application (length byte followed by up to 31 characters)
  368.    name of application [STRING[31]]}
  369. LoadTrap = $12D;                {[GLOBAL VAR]  trap before launch? [byte]}
  370. SegHiEnable = $BB2;                {[GLOBAL VAR]  (byte) 0 to disable MoveHHi in LoadSeg}
  371.  
  372. { Window Manager Globals }
  373. WindowList = $9D6;                {[GLOBAL VAR] Pointer to first window in window list; 0 if using events but not windows
  374.   Z-ordered linked list of windows [pointer]}
  375. PaintWhite = $9DC;                {[GLOBAL VAR] Flag for whether to paint window white before update event (word)
  376.   erase newly drawn windows? [word]}
  377. WMgrPort = $9DE;                {[GLOBAL VAR] Pointer to Window Manager port 
  378.   window manager's grafport [pointer]}
  379. GrayRgn = $9EE;                    {[GLOBAL VAR] Handle to region drawn as desktop
  380.   rounded gray desk region [handle]}
  381. CurActivate = $A64;                {[GLOBAL VAR] Pointer to window to receive activate event
  382.   window slated for activate event [pointer]}
  383. CurDeactive = $A68;                {[GLOBAL VAR] Pointer to window to receive deactivate event
  384.   window slated for deactivate event [pointer]}
  385. DragHook = $9F6;                {[GLOBAL VAR] Address of procedure to execute during TrackGoAway, DragWindow, GrowWindow, DragGrayRgn, TrackControl, and DragControl
  386.   user hook during dragging [pointer]}
  387. DeskPattern = $A3C;                {[GLOBAL VAR] Pattern with which desktop is painted (8 bytes)
  388.   desk pattern [8 bytes]}
  389. DeskHook = $A6C;                {[GLOBAL VAR] Address of procedure for painting desktop or responding to clicks on desktop
  390.   hook for painting the desk [pointer]}
  391. GhostWindow = $A84;                {[GLOBAL VAR] Pointer to window never to be considered frontmost
  392.   window hidden from FrontWindow [pointer]}
  393.  
  394. { Text Edit Globals }
  395. TEDoText = $A70;                {[GLOBAL VAR] Address of TextEdit multi-purpose routine
  396.   textEdit doText proc hook [pointer]}
  397. TERecal = $A74;                    {[GLOBAL VAR] Address of routine to recalculate line starts for TextEdit
  398.   textEdit recalText proc hook [pointer]}
  399. TEScrpLength = $AB0;            {[GLOBAL VAR] Size in bytes of TextEdit scrap (long)
  400.   textEdit Scrap Length [word]}
  401. TEScrpHandle = $AB4;            {[GLOBAL VAR] Handle to TextEdit scrap
  402.   textEdit Scrap [handle]}
  403. TEWdBreak = $AF6;                {[GLOBAL VAR] default word break routine [pointer]}
  404. WordRedraw = $BA5;                {[GLOBAL VAR] (byte) - used by TextEdit RecalDraw}
  405. TESysJust = $BAC;                {[GLOBAL VAR] (word) system justification (intl. textEdit)}
  406.  
  407. { Resource Manager Globals }
  408. TopMapHndl = $A50;                {[GLOBAL VAR] Handle to resource map of most recently opened resource file
  409.   topmost map in list [handle]}
  410. SysMapHndl = $A54;                {[GLOBAL VAR] Handle to map of system resource file
  411.   system map [handle]}
  412. SysMap = $A58;                    {[GLOBAL VAR] Reference number of system resource file (word)
  413.   reference number of system map [word]}
  414. CurMap = $A5A;                    {[GLOBAL VAR] Reference number of current resource file (word) 
  415.   reference number of current map [word]}
  416. ResReadOnly = $A5C;                {[GLOBAL VAR] Read only flag [word]}
  417. ResLoad = $A5E;                    {[GLOBAL VAR] Current SetResLoad state (word)
  418.   Auto-load feature [word]}
  419. ResErr = $A60;                    {[GLOBAL VAR] Current value of ResError (word)
  420.   Resource error code [word]}
  421. ResErrProc = $AF2;                {[GLOBAL VAR] Address of resource error procedure
  422.   Resource error procedure [pointer]}
  423. SysResName = $AD8;                {[GLOBAL VAR] Name of system resource file (length byte followed by up to 19 characters)
  424.   Name of system resource file [STRING[19]]}
  425. RomMapInsert = $B9E;            {[GLOBAL VAR] (byte) determines if we should link in map}
  426. TmpResLoad = $B9F;                {[GLOBAL VAR] second byte is temporary ResLoad value.}
  427.  
  428. { Menu Mgr globals }
  429. MBarHeight = $BAA;                {[GLOBAL VAR] height of the menu bar}
  430.  
  431. { CommToolbox Global }
  432. CommToolboxGlobals = $0BB4;        {[GLOBAL VAR] pointer to CommToolbox globals }
  433.  
  434.  
  435. {$ENDC} { UsingSysEqu }
  436.  
  437. {$IFC NOT UsingIncludes}
  438.  END.
  439. {$ENDC}
  440.  
  441.